package cn.wolfcode.wms.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Getter@Setter@ToString
public class StockOutcomeBill {
    //未审核状态
    public static final int STATUS_NORMAL=0;
    //以审核状态
    public static final int STATUS_AUDITED=1;

    private Long id;
    //定单编号
    private String sn;
    //业务时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date vdate;
    //定单状态(默认未审核)
    private Integer status;
    //订单总金额
    private BigDecimal totalAmount;
    //订单总数量
    private BigDecimal totalNumber;
    //审核时间
    private Date auditTime;
    //录入时间
    private Date inputTime;

    //录入人
    private Employee inputUser;
    //审核人
    private Employee auditor;
    //订单所关联的仓库
    private Depot depot;
    //关联的客户
    private Client client;

    //采购订单的明细
    private List<StockOutcomeBillItem> items =new ArrayList<>();


}